﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using NWN.GDY.Service.Core;
using Sdo.Payment.Common;

namespace NWN.GDY.Web
{
    public partial class TestShowInfo : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            lblTableDetail.Text = XmlConfigMgr.ToXml(new GDYEngine().GetALLTables());
        }

        protected void btnOverTable_Click(object sender, EventArgs e)
        {
            new GDYEngine().FinishTable(txtOverTableGUID.Text.Trim());
            Response.Redirect("TestShowInfo.aspx");
        }

        protected void btnOverAllTable_Click(object sender, EventArgs e)
        {
            new GDYEngine().FinishAllTable();
            Response.Redirect("TestShowInfo.aspx");
        }
    }
}
